import request from "@/utils/request";

export function getDonorsList(method, data) {
  if (method == "post") {
    return request({
      url: "/help",
      method: method,
      data,
    });
  } else {
    return request({
      url: "/help",
      method: method,
      params: data,
    });
  }
}
export function assign(method, data) {
  if (method == "post") {
    return request({
      url: "/help/goodsaction",
      method: method,
      data,
    });
  } else {
    return request({
      url: "/help/goodsaction",
      method: method,
      params: data,
    });
  }
}
export function assignList(method, data) {
  if (method == "post") {
    return request({
      url: "/help/elderlist",
      method: method,
      data,
    });
  } else {
    return request({
      url: "/help/elderlist",
      method: method,
      params: data,
    });
  }
}

export function gethelporder(method, data) {
  if (method == "post") {
    return request({
      url: "/help/order",
      method: method,
      data,
    });
  } else {
    return request({
      url: "/help/order",
      method: method,
      params: data,
    });
  }
}


